package com.adinnet.api;

import lombok.extern.slf4j.Slf4j;
import org.apache.catalina.Context;
import org.apache.catalina.connector.Connector;
import org.apache.tomcat.util.descriptor.web.SecurityCollection;
import org.apache.tomcat.util.descriptor.web.SecurityConstraint;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author: sunjianbo
 * @date: 2019/7/23 9:58
 */
@SpringBootApplication
@EnableScheduling
@MapperScan("com.adinnet.api.*.mapper")
@ComponentScan(basePackages = {"com.adinnet"})
@Slf4j
public class AdinnetApiApplication {

    public static void main(String[] args) {
        SpringApplication.run(AdinnetApiApplication.class, args);
        log.info("----------------------启动成功 start success----------------------");
    }

}
